#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int grade;
	scanf("%d", &grade);

	switch (grade / 10)
	{
	case 10:
	case 9:
		printf("score=%d,grade:A", grade);
		break;
	case 8:
		printf("score=%d,grade:B", grade);
		break;
	case 7:
		printf("score=%d,grade:C", grade);
		break;
	case 6:
		printf("score=%d,grade:D", grade);
		break;
	default:
		printf("score=%d,grade:E", grade);
		break;
	}
	return 0;
}